import { createRoot } from "react-dom/client";
import { ConfigProvider } from "antd"; // 引入 antd 的中文包
import { locale } from "dayjs";
import zhCN from "antd/lib/locale/zh_CN";
import "dayjs/locale/zh-cn";
import App from "./App";
locale("zh-cn");

const rootEl = document.getElementById("root");
if (rootEl) {
  const root = createRoot(rootEl);
  root.render(
    <ConfigProvider locale={zhCN}>
      <App />
    </ConfigProvider>
  );
}
